<link rel="stylesheet" href="public/css/home.css">
<div class="home" ng-controller="homeController">
	<header class="home_header">
		<a href="#"></a>
		<h1></h1>
		<a ui-sref="search"><span></span></a>
	</header>
	<div class="home_banner" >
		<div class="swiper-container">
			  <div class="swiper-wrapper">
				    <div class="swiper-slide" ng-repeat="data in homeData.banner" ><a href="#" ng-style="{backgroundImage:'url({{data}})'}"></a></div>
			  </div>
			  <div class="swiper-pagination"></div>
		</div>
	</div>
	<ul class="home_nav">
		<li ng-repeat="nav in homeData.nav"><a ui-sref={{nav.link}}><div class="home_nav_img" ng-style="{backgroundImage:'url({{nav.img}})'}"></div><p>{{nav.name}}</p></a></li>
	</ul>
	<div class="home_roll">
		<span></span>
		<div class="home_roll_wrap">
			<ul>
				<li ng-repeat="nav in homeData.roll">{{nav}}</li>
			</ul>
		</div>	
	</div>
	<ul class="home_milk">
		<li ng-repeat="nf in homeData.nf"><a href="#" ng-style="{backgroundImage:'url({{nf}})'}"></a></li>
	</ul>
	<div class="home_seckill">
		<div class="home_seckill_top">
			<p class="home_seckill_p1"><span class="home_nowtime">每日一秒</span><span class="home_endtime">{{date}}</span></p>
			<p class="home_seckill_p2"><span class="home_timeone">21:00</span><span class="home_timetow">10:00</span></p>		
		</div>
		<div class="home_seckill_commodity">
			<ul >
				<li ng-repeat="seckill in homeData.goods">
					<a href="#" ng-style="{backgroundImage:'url({{seckill.goods_thumb}})'}"></a>
					<p><span>￥{{seckill.shop_price}}</span><span>{{seckill.discount_rate}}打折</span></p>
				</li>
			</ul>
		</div>	
	</div>
	<ul class="dayshop">
		<li><a href="#" ng-repeat="dayshop in homeData.dayshop" ng-style="{backgroundImage:'url({{dayshop}})'}"></a></li>
	</ul>
	<ul id="home_select" class="home_select" ng-init="bg[0]='home_select_change'">
		<li ng-click="homeChange(0);homepage=homeData.data.list"><span ng-class="bg[0]">今日上新</span></li>
		<li ng-click="homeChange(1);homepage=homepage2"><span ng-class="bg[1]">还有机会</span></li>
		<li ng-click="homeChange(2);homepage=homepage3"><span ng-class="bg[2]">即将开售</span></li>
	</ul>
	<ul class="home_select_commodity" >
		<li ng-repeat="select in homepage">
		<a class="{{selectImgStatus}}"  href="" ng-style="{backgroundImage:'url({{select.banner}})'}">
			<p ng-hide={{soldstatus}}><strong>{{select.discount}}</strong><span>折起</span></p>
			<div ng-init="bol" ng-class="{true:'inactive',false:'home_select_btn'}[bol]" ng-click="bol=!bol;onSale(select)"  ng-show={{soldstatus}}>{{select.saleText}}</div>
		</a>
			<div>
				<span class="home_Store">{{select.spec_name}}</span> 
				<div class="home_Store_p">
					<p ng-hide={{soldstatus}}>已售<span class="home_sold">{{select.sold_total_nums}}</span>件</p><span>{{select.notice}}</span>
				</div>
			</div>
		</li>
	</ul>
	<a href="javascript:scroll(0, 0);"  ng-class="homeAnchor" onfocus="this.blur();"></a>
</div>
<my-directive></my-directive>